﻿using System.Windows.Forms;

namespace TAProject.UI
{
    public partial class FormProgressBar : Form
    {
        private readonly Form _parentForm;
        
        public FormProgressBar(Form parentForm)
        {
            InitializeComponent();

            _parentForm = parentForm;
            _parentForm.Enabled = false;
        }

        private void FormProgressBar_FormClosing(object sender, FormClosingEventArgs e)
        {
            _parentForm.Enabled = true;
        }
    }
}